﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DevExpress.Xpo;

namespace Zero.DataLayer.Donnees
{
    public class XpoInsertionTV: XPBaseObject
    {
          public XpoInsertionTV()
            : base()
        {
            // This constructor is used when an object is loaded from a persistent storage.
            // Do not place any code here.
        }

          public XpoInsertionTV(Session session)
            : base(session)
        {
            // This constructor is used when an object is loaded from a persistent storage.
            // Do not place any code here.
        }




          private Guid _Oid;
          [Key]
          public Guid Oid
          {
              get { return _Oid; }
              set { SetPropertyValue("Oid", ref _Oid, value); }
          }



          private XpoSupportTV _SupportTV;
          public XpoSupportTV SupportTV
          {
              get { return _SupportTV; }
              set { SetPropertyValue("SupportTV", ref _SupportTV, value); }
          }


          private int _NumeroQuartHeure;
          public int NumeroQuartHeure
          {
              get { return _NumeroQuartHeure; }
              set { SetPropertyValue("NumeroCinQMinute", ref _NumeroQuartHeure, value); }
          }

          private DateTime _Date;
          public DateTime Date
          {
              get { return _Date; }
              set { SetPropertyValue("Date", ref _Date, value); }
          }


          private XpoPlanTv _XpoPlanTv;
          [Association("XpoPlanTV-XpoInsertionTV")]
          public XpoPlanTv XpoPlanTv
          {
              get { return _XpoPlanTv; }
              set { SetPropertyValue("XpoPlanTv ", ref _XpoPlanTv, value); }
          }



          [Association("XpoInsertionTV-Signalitique")]
          public XPCollection<Signalitique> Signalitiques
          {
              get { return GetCollection<Signalitique>("Signalitiques"); }
          }
    }
}
